package com.hk.stream.rocketmq;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.client.producer.SendCallback;
import org.apache.rocketmq.client.producer.SendResult;

/**
 * @author Kevin
 * @date 2023-05-28 15:29
 */
@Slf4j
public class NullSendCallback implements SendCallback {

    public final static NullSendCallback INSTANCE = new NullSendCallback();

    private NullSendCallback() {
    }

    @Override
    public void onSuccess(SendResult sendResult) {

    }

    @Override
    public void onException(Throwable e) {
        log.error(e.getMessage(), e);
    }
}
